package com.oneday.ashop.core.entity.book;

import com.oneday.ashop.core.entity.IncIdEntity;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 图书标签
 * User:bob.yang
 * Date 2015/8/27 0027
 */
@Document(collection = "Tag")
@Data
public class Tag extends IncIdEntity<Integer>{

    /**
     * 一级标签
     */
    public static final Integer LEVEL_1 = 1;
    /**
     * 二级标签
     */
    public static final Integer LEVEL_2 = 2;
    /**
     * 标签级别
     */
    private Integer level;
    /**
     * 上级标签
     */
    private Integer parentTag;
    /**
     * 标签名称
     */
    private String name;
    /**
     * 标签添加时间
     */
    private Date addTime;
    /**
     * 备注
     */
    private String remarks;
}
